using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ShootThemUp.Sources.GameElements.Ships.Ennemies.Waves.Trajectories
{
    class OvalTrajectory : IWaveTrajectory
    {
        private Vector2 center;
        private int height;
        private int width;

        public OvalTrajectory(Vector2 center, int height, int width)
        {
            this.center = center;
            this.height = height;
            this.width = width;
        }

        public int GetX(float t)
        {
            return (int)(width * Math.Cos(t) + center.X);
        }

        public int GetY(float t)
        {
            return (int)(height * Math.Sin(t) + center.Y);
        }
    }
    
}
